<el-dialog :close-on-click-modal="false"  :close-on-press-escape="false"  class="dialogStyleBase" :title="mixinEdit_editTitle" width="900px" :visible.sync="mixinEdit_editVisible"
    :before-close="function(){mixinEdit_editBoxClose('editForm')}" append-to-body>
    <div v-loading="mixinEdit_loading">

        <el-form ref="editForm" :model="form" label-width="200px" label-position="left"
            :disabled="form.activityStatus == 3">

            <LayoutCell>
                <LayoutCellItem title="基本信息">
                    <el-form-item label="活动名称" prop="activityName" :rules="{ required: true, message: '活动名称 不能为空'}">
                        <el-input :disabled="isDisabled" v-model="form.activityName"></el-input>
                    </el-form-item>
                    <el-form-item label="活动时间" prop="activityTimeType" :rules="{ required: true, message: '活动时间 不能为空'}">
                        <el-radio-group v-model="form.activityTimeType" :disabled="form.activityStatus == 2">
                            <el-radio :label="1">固定时间</el-radio>
                        </el-radio-group>
                    </el-form-item>
                    <el-form-item>
                        <!-- <el-col :span="9">
                            <el-form-item :rules="{ required: true, message: '请选择开始时间'}" prop="startTimeStr">
                                <el-date-picker v-model="form.startTimeStr" type="datetime" :disabled="isDisabled"
                                    value-format="yyyy-MM-dd HH:mm:ss" placeholder="选择日期">
                                </el-date-picker>
                            </el-form-item>
                        </el-col>
                        <el-col :span="1">-</el-col>
                        <el-col :span="9">
                            <el-form-item :rules="{ required: true, message: '请选择结束时间'}" prop="endTimeStr">
                                <el-date-picker v-model="form.endTimeStr" type="datetime"
                                    value-format="yyyy-MM-dd HH:mm:ss" placeholder="选择日期">
                                </el-date-picker>
                            </el-form-item>
                        </el-col> -->
                        <el-date-picker
                            v-model="form.value"
                            type="datetimerange"
                            range-separator="至"
                            start-placeholder="开始时间"
                            end-placeholder="结束时间">
                        </el-date-picker>
                    </el-form-item>
                </LayoutCellItem>

                <LayoutCellItem title="优惠规则">
                    <el-form-item label="下单可用抵扣" prop="deductOverlayLst">
                        <el-checkbox-group v-model="form.deductOverlayLst" :disabled="isDisabled">
                            <el-checkbox v-for="item in deducteList" :label="item.id" :checked="item.isChecked">{{
                                item.name }}</el-checkbox>
                        </el-checkbox-group>
                    </el-form-item>
                </LayoutCellItem>

            </LayoutCell>
        </el-form>

    </div>
    <div slot="footer">
        <el-row>
            <!-- <el-col :span="12" style="text-align: left;">
                <el-button :disabled="form.activityStatus == 3 || mixinEdit_loading"
                    @click="mixinEdit_resetForm('editForm')">重 置</el-button>
            </el-col> -->
            <el-col :span="24">
                <el-button :disabled="form.activityStatus == 3 || mixinEdit_loading"
                    @click="mixinEdit_editBoxClose('editForm')">取 消
                </el-button>
                <el-button type="primary" @click="mixinEdit_editFormSubmit({model:'form',ref:'editForm'})"
                     :disabled="(form.activityStatus == 3 && mixinEdit_editType != 'copy') || mixinEdit_loading">确
                    定</el-button>
            </el-col>
        </el-row>
    </div>
</el-dialog>